﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLinePacking.Attributes;

namespace ZoneLinePacking.Models {
    public class HOpResultModel : BindableBase {
        //{ AbsScanCode = Code, CreateTime = op050LResult != null ? op050LResult.CreateTime : op050RResult != null ? op050RResult.CreateTime : DateTime.Now, OP006结论 = op006Result?.Result, OP010结论 = op010Result?.Result, OP020结论 = op020Result?.Result, OP050L结论 = op050LResult?.Result, OP050R结论 = op050RResult?.Result

        [DgColumnAttr("减震器条码/工件条码")]
        public string Code { get; set; }

        [DgColumnAttr("加工时间")]
        public DateTime CreateTime { get; set; }

        [DgColumnAttr("OP06工位结论")]
        public string Op06Result { get; set; }

        [DgColumnAttr("OP010工位结论")]
        public string Op010Result { get; set; }

        [DgColumnAttr("OP020工位结论")]
        public string Op020Result { get; set; }

        [DgColumnAttr("OP050L工位结论")]
        public string Op050LResult { get; set; }

        [DgColumnAttr("OP060工位结论")]
        public string Op050RResult { get; set; }
        [DgColumnAttr("OP060工位结论")]
        public string Op060Result { get; set; }
    }

    public class QOpResultModel : BindableBase {
        //{ AbsScanCode = Code, CreateTime = op050LResult != null ? op050LResult.CreateTime : op050RResult != null ? op050RResult.CreateTime : DateTime.Now, OP006结论 = op006Result?.Result, OP010结论 = op010Result?.Result, OP020结论 = op020Result?.Result, OP050L结论 = op050LResult?.Result, OP050R结论 = op050RResult?.Result

        [DgColumnAttr("减震器条码/工件条码")]
        public string Code { get; set; }

        [DgColumnAttr("加工时间")]
        public DateTime CreateTime { get; set; }

        [DgColumnAttr("OP010工位结论")]
        public string Op010Result { get; set; }

        [DgColumnAttr("OP040工位结论")]
        public string Op040Result { get; set; }


    }
}
